<?php  
defined('APPLICATION_URL')||define('APPLICATION_URL', '/ITjap(tung)/ITjap_finalversion');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- head - Finished -->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<link rel="stylesheet" href="<?php echo APPLICATION_URL;?>/css/layout.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?php echo APPLICATION_URL;?>/css/login.css" type="text/css" media="screen" />	
	<title>会議室予約システム</title>
</head>
<!-- /head - Finished -->

<script type="text/javascript">
	function checkForm()
	{
		var x=document.forms["login"]["tbID"].value;
		var y=document.forms["login"]["tbPassword"].value;
		//var atpos=x.indexOf("@");
		//var dotpos=x.lastIndexOf(".");
		if (x==null || x==""  )
		  {
			  alert("Username must be filled out");
			  return false;
		  }
		else if(y=null||y=="")
		{
			alert("Password must be filled out");
			return false;
		} 
	}
</script>
<body>
<!-- header area -->
<form name="login" action="<?php echo APPLICATION_URL;?>/controller/Login.php" onsubmit="return checkForm();" method="post">
	<div id="header_area">
	  <div id="header">
	    <div id="header_link_area">
	      <a name="pagetop"></a>
	      <div id="header_appeal">会議室予約システム</div>
	      <div id="header_link">
	        <ul>
	         <li class="header_b_1">
                    <a class="header_b_1" href="<?php echo APPLICATION_URL;?>/index.php">
                        <img width="56" height="21" alt="ホーム" src="<?php echo APPLICATION_URL;?>/images/header/header_b_1.gif">
                    </a>
                 </li>
                 <li class="header_b_3">
                    <a class="header_b_3" href="<?php echo APPLICATION_URL;?>/view/user/Register.php">
                        <img width="155" height="21" alt="新規会員登録" src="<?php echo APPLICATION_URL;?>/images/header/header_b_3.gif">
                    </a>
                </li>
                <li class="header_b_4">
                    <a class="header_b_4" href="<?php echo APPLICATION_URL;?>/index.php">
                        <img width="82" height="21" alt="お問い合せ" src="<?php echo APPLICATION_URL;?>/images/header/header_b_4.gif">
                    </a>
                </li>
	        </ul>
	      </div>
	    </div>
	    <div id="header_title">
	       <img id="SiteHeader1_imgTitle" src="<?php echo APPLICATION_URL;?>/images/header/header_title_1.gif" alt="会議室予約" style="height:90px;width:960px;border-width:0px;" />
	    </div>
	  </div>
	</div>
<!-- header area-->
<!-- pan_area -->
	      <div id="pan_area">
	        <div id="pan">
	          <ul>
	            <li>&nbsp;</li>
	          </ul>
	        </div>
	      </div>
<!-- pan_area -->
	  
<!-- /main -->
	<div id="main_top_area">&nbsp;</div>   
	<!-- main_middle_area -->   
	<div id="main_middle_area">
	    <!-- main area-->
		<div id="main_area">		
			<!-- main -->
			<div id="main">
				  <!-- login -->
		          <div id="login">	
		          		<!-- mail -->
			            <div id="mail">
				              <label for="mail">ログインID</label>
				              <input name="tbID" type="text" id="tbID" class="width_20" />
			            </div>
			            <!-- password -->
			            <div id="password">
				              <label for="password">パスワード</label>
				              <input name="tbPassword" type="password" id="tbPassword" class="width_20" />
			            </div>
			            <!-- button -->		
			            <div id="button">
			              	<input type="submit" name="btnLogin" value=" ログイン  " id="btnLogin" />
			            </div>
			            <?php
		            		if ($_GET['login']=="f") echo "<span id='lblMessage' style='font-size:1.2em;'><p style='color:red'>ログインに失敗しました。<br />ログインIDまたはパスワードを確認してください</p></span>";
		            		//session_start();
		            		//session_destroy();
		            	?>
		          </div>
          		  <!-- login -->
          		  <!-- regist user -->
			          <div id="user_register">
				            <ul>
				              	<li class="register"><a href="register.php" class="register"><img src="<?php echo APPLICATION_URL;?>/images/user_register.gif" alt="新規利用者登録（無料）" width="165" height="59" /></a></li>
				            </ul>
				            <p>初めてのご利用の場合には、会員登録が必要です。</p>
			          </div>
          	      <!-- regist user -->	    
			</div>
	  		<!-- /main -->	  	
		</div>
		<!-- /main_area-->
	 </div>
	 <!-- /main_middle_area -->
	<div id="main_bottom_area">&nbsp;</div>
<!-- /main -->
<!-- FOOTER -->
	<div id="footer_area">
	  <div id="footer">
	    <ul>
	      <li class="left"><a href="<?php echo APPLICATION_URL;?>/index.php">ホーム</a></li>
	      <li><a href="<?php echo APPLICATION_URL;?>/view/login.php">ログイン</a></li>
	      
	      <li><a href="<?php echo APPLICATION_URL;?>/index.php">Q&A</a></li>

	    </ul>
	    <p>Copyright&nbsp;&copy;&nbsp;Team 08</p>
	  </div>
	</div>
<!-- FOOTER -->	
</form>
</body>
</html>